home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-10-04 | 3.5 KB | 144 lines |
- # AMan -*- Makefile -*- for Matt Dillon's nice DICE (Amiga)
- #
- # (c)Copyright 1994,95 by Tobias Ferber, ukjg@rz.uni-karlsruhe.de
- #
- # This file is part of the AMan distribution.
- #
- # AMan is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published
- # by the Free Software Foundation; either version 1 of the License, or
- # (at your option) any later version.
- #
- # AMan is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this file; see the file COPYING. If not, write to
- # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-
- # $VER: $Id: DMakefile,v 1.4 1995/09/15 21:01:14 tf Exp $
-
- RM = delete quiet
- CP = copy quiet clone
-
- #
-
- suffix = texi
- #suffix = texinfo
- makeguide = makeguide --amiga-39
- #makeguide = makeinfo --amiga
- guide2doc = guide2doc
- #guide2doc = ag2txt
- texindex = texindex
- tex = virtex &tex
- dvips = dvips
-
- #
-
- distdir = aman-1.15
- arcname = aman-1.15
-
- ##############################################################################
- #
- # DCC 2.07.56R (11.6.93)
- #
-
- CC = dcc
- CFLAGS = -3.1 -030 -882 -s
- DEBUG =
-
- ##############################################################################
- #
- # GNU C (tested with gcc version 2.6.3)
- #
-
- #CC = gcc
- #CFLAGS = -noixemul -Iinclude: -I.
- ##CFLAGS = -O3 -Wall -noixemul -m68030 -m68881 -Iinclude: -I.
- #DEBUG = -DDEBUG
-
- ##############################################################################
- #
- # You don't want to change anything below this line
- #
-
- stem = aman
- exes = aman ldb2db
-
- ##############################################################################
-
- all: $(exes)
-
- aman: main.o aman.o
- $(CC) $(CFLAGS) -lmui -o %(left) %(right)
-
- main.o: main.c aman.h version.h
- $(CC) $(CFLAGS) $(DEBUG) -c main.c
-
- aman.o: aman.c aman.h amanExtern.h hooks.c version.h
- $(CC) $(CFLAGS) -c aman.c
-
- ldb2db: ldb2db.c
- $(CC) $(CFLAGS) -o %(left) %(right)
-
- ##############################################################################
-
- docs: $(stem).guide $(stem).dvi $(stem).ps
-
- $(stem).guide: $(stem).texi
- $(makeguide) -o %(left) %(right)
-
- # $(tex) creates the .(log|toc|aux|dvi) files
-
- $(stem).dvi: $(stem).$(suffix)
- $(tex) %(right)
-
- $(stem).ps: $(stem).dvi
- $(dvips) $(stem).dvi
-
- # $(texindex) creates the #?.(cps|fns|vrs|kys|pgs|aus) files
-
- book: $(stem).$(suffix)
- $(tex) $(stem).$(suffix)
- $(tex) $(stem).$(suffix)
- $(texindex) $(stem).cp
- $(texindex) $(stem).fn
- $(texindex) $(stem).vr
- $(texindex) $(stem).ky
- $(texindex) $(stem).pg
- $(tex) $(stem).$(suffix)
-
- ##############################################################################
-
- clean:
- $(RM) $(exes) #?.o #?.(log|toc|aux|cp|fn|vr|ky|pg|cps|fns|vrs|kys|pgs|tp|log)
-
- bumprev:
- execute cico
-
- install: aman ldb2db
- $(CP) AMan ldb2db work:bin/
-
- dist: $(exes) $(stem).texi $(stem).guide $(stem).dvi $(stem).ps
- $(CP) `cpdist -n` $(distdir)
- lha -a -e -r -x a $(arcname).lha $(distdir)
- delete all quiet $(distdir)
-
- # tar cf $(arcname).tar $(distdir)
- # gzip -9 $(arcname).tar
-
- ##############################################################################
-
- 000:
- echo >ram:000.cvt "*"-030 -882*"->*"*";"
- cvt -s -f ram:000.cvt DMakefile -o %s.000
- delete quiet ram:000.cvt
- dmake -a -f DMakefile.000 all
- move $(stem) $(stem).000
-
- 030:
- dmake -a all
- move $(stem) $(stem).030
-